package o;

import android.content.Context;
import android.content.Intent;
import com.huawei.hwid.core.constants.HwAccountConstants;

public class dzv {
    private static boolean ˋ = false;

    public static boolean ˋ() {
        return ˋ;
    }

    public static void ˊ(boolean z) {
        ˋ = z;
    }

    public static void ˊ(String str) {
        cvt.setApsid_(System.currentTimeMillis());
        Context ˋ = ContentManager.getInstant().getContext();
        String str2 = "main.activity";
        if ("app_edu".equals(str)) {
            str2 = "educenter.activity";
        } else if ("app_child".equals(str)) {
            str2 = "kidscenter.activity";
        } else if ("app_buoy".equals(str)) {
            ˊ();
            return;
        }
        cjm o_cjm = new cjm(str2, null);
        o_cjm.ॱ(ˋ).addFlags(HwAccountConstants.FLAG_TRANSLUCENT_STATUS);
        o_cjm.ॱ(ˋ).addFlags(268435456);
        o_cjm.ॱ(ˋ).putExtra("from_restart", true);
        cjk.ˎ().ˋ(ˋ, o_cjm);
        Intent intent = new Intent();
        intent.setAction("com.huawei.systemmanager.action.CHANGE_HOME_COUNTRY");
        ll ˏ = ll.ˏ(ˋ);
        if (ˏ != null) {
            ˏ.ˋ(intent);
        }
    }

    public static void ˊ() {
        Context ˋ = ContentManager.getInstant().getContext();
        Intent intent = new Intent();
        intent.setAction("com.huawei.systemmanager.action.CHANGE_HOME_COUNTRY");
        ll ˏ = ll.ˏ(ˋ);
        if (ˏ != null) {
            ˏ.ˋ(intent);
        }
        ˎ();
    }

    private static void ˎ() {
        fam.ॱ().ॱ(ContentManager.getInstant().getContext());
    }
}
